﻿using System;
using System.Collections.Generic;
using System.Text;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.PanGu;
using System.IO;
using System.Collections;
using PanGu;

namespace MongoSample
{
    public class SplitWord
    {
         public void TestSplit()
         {
             String text = "基于java语言开发的轻量级的中文分词工具包"; ;

             Segment segment = new Segment();
                ICollection<WordInfo> words = segment.DoSegment(text);
             foreach (var wordInfo in words)
             {
                 Console.WriteLine(wordInfo);
                 
             }

         }
    }
}